

public class Main {
    public static void main(String[] args) {
        //第一题
        Student student=new Student("张三",18);
        Undergraduate undergraduate=new Undergraduate("学士");
        student.show();
        undergraduate.show();

        //第二题
        Area area=new Area();
        System.out.println("圆的面积:"+area.Circle(3));
        System.out.println("正方形面积"+area.Square(2));

    }
}
